//
// Created by wyh on 2025-06-14 09:00.
//
#include <iostream>
#include "utility/value.h"

using namespace std;
using namespace wyh::utility;

int main(int argc, char **argv)
{
    Value v1(true);
    v1.show();

    Value v2(968);
    v2.show();

    Value v3(2.568f);
    v3.show();

    Value v4(4.863);
    v4.show();

    Value v5("hello world");
    v5.show();

    Value v6(string("nihao"));
    v6.show();

    v6=2.859;
    v6.show();

    v6="hello";
    v6.show();

    bool _v1 = v1;
    int _v2 = v2;
    float _v3 = v3;
    double _v4 = v4;
    string _v5 = v5;

    cout<<"_v1="<<_v1<<endl;
    cout<<"_v2="<<_v2<<endl;
    cout<<"_v3="<<_v3<<endl;
    cout<<"_v4="<<_v4<<endl;
    cout<<"_v5="<<_v5<<endl;

    cout<<"-----------------------"<<endl;
    cout<<"v1="<<v1<<endl;
    cout<<"v2="<<v2<<endl;
    cout<<"v3="<<v3<<endl;
    cout<<"v4="<<v4<<endl;
    cout<<"v5="<<v5<<endl;

    return 0;
}
